package com.zygh.policeasset.service;

import com.zygh.policeasset.mapper.ShortcutMenuMapper;
import com.zygh.policeasset.pojo.ShortcutMenu;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/ShortcutMenuService.class */
public class ShortcutMenuService {
    @Autowired
    ShortcutMenuMapper shortcutMenuMapper;

    public Integer add(ShortcutMenu shortcutMenu) {
        return this.shortcutMenuMapper.add(shortcutMenu);
    }

    public Integer delete() {
        return this.shortcutMenuMapper.deleteById();
    }

    @Async("asyncTaskExecutor")
    public CompletableFuture<List<ShortcutMenu>> selectList() {
        return CompletableFuture.completedFuture(this.shortcutMenuMapper.selectList());
    }
}